Pod::Spec.new do |spec|
  spec.name             = "bdprivate4"
  spec.version          = "0.4.1"
  spec.summary          = "Baidu Private SDK"
  spec.description      = "This is a private SDK for Baidu services, providing functionalities for internal use."
  spec.homepage         = "https://github.com/yourusername/baiduprivate"
  spec.license          = { :type => "Copyright", :text => "Copyright (c) 2020 BaiduLBS" }
  spec.authors          = { "BaiduLBS" => "jj" }
  spec.source           = { :http => "https://nxcdn.njweb.top/bdprivatenavi4.zip" }
  spec.platform         = :ios, "12.0"

  spec.compile_flags = "-ObjC"

  spec.pod_target_xcconfig = {
    "ENABLE_BITCODE" => "NO",
    "EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
    "VALID_ARCHS[sdk=iphonesimulator*]" => "x86_64"
  }
  spec.user_target_xcconfig = {
    "ENABLE_BITCODE" => "NO",
    "EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64"
  }

  spec.frameworks = [
    "CoreLocation",
    "CoreGraphics",
    "OpenGLES",
    "QuartzCore",
    "Security",
    "SystemConfiguration",
    "Accelerate",
    "AVFoundation",
    "AudioToolbox",
    "AdSupport",
    "AssetsLibrary",
    "CoreTelephony",
    "CoreMotion",
    "CoreBluetooth",
    "MediaPlayer",
    "UserNotifications",
    "GLKit",
    "WebKit"
  ]

  spec.libraries = [
    "sqlite3.0",
    "z",
    "c++",
    "iconv"
  ]

  spec.vendored_frameworks = [
    "BDWXMapAPI.framework",
    "MapSDK/BaiduMapAPI_PrivateNavi.framework",
    "MapSDK/BaiduMapAPI_Base.framework",
    "MapSDK/BaiduMapAPI_Map.framework",
    "MapSDK/BaiduMapAPI_Search.framework",
    "MapSDK/BaiduMapAPI_Utils.framework"
  ]

  spec.dependencies = {
    "BMKLocationKit" => "2.1.3"
  }

  spec.vendored_libraries = [
    "MapSDK/thirdlibs/libcrypto.a",
    "MapSDK/thirdlibs/libssl.a"
  ]

  spec.source_files        = "BDWXMapAPI.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_Base.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_Map.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_Search.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_Utils.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_PrivateNavi.framework/Headers/**/*.h"
  spec.public_header_files = "BDWXMapAPI.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_Base.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_Map.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_Search.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_Utils.framework/Headers/**/*.h",
                             "MapSDK/BaiduMapAPI_PrivateNavi.framework/Headers/**/*.h"
  spec.resources           = "BDWXMapAPI.framework/*.{bundle, dat, png}", "MapSDK/BaiduMapAPI_Map.framework/*.{bundle}", "MapSDK/BaiduMapAPI_PrivateNavi.framework/*.{bundle}", "MapSDK/*.bundle"

  spec.requires_arc        = true
end
